# -*- coding: utf-8 -*-
from  qiniu import Auth,BucketManager
def qiniu_spider_man(url,key):
    access_key = 'e6NsTpfl6Ctf3vWW8k1pJjSBnQ0-WvLgPJroCxiP'
    secret_key = 'C14vJPkeng3dIEVL0mH0GjfLz4KL7SmyhD9y64cj'
    bucket_name = 'imgse'
    q =Auth(access_key,secret_key)
    bucket = BucketManager(q)
    return bucket.fetch(url,bucket_name,key)

if __name__ == '__main__':
    qiniu_spider_man(url='http://t2.hddhhn.com/uploads/tu/201612/98/st93.png', key='st96.png')

